package ru.susu.algebra.partition.filter;

import ru.susu.algebra.partition.Partition;
import ru.susu.algebra.partition.PartitionsFacade;

/**
 * @author akargapolov
 * @since: 09.03.2009
 */
public class ItselfAssociatedPartitionFilter implements IPartitionFilter
{

	@Override
	public boolean checkPartition(Partition partition)
	{
		Partition p2 = PartitionsFacade.getAssociatedPartition(partition);
		return partition.equals(p2);
	}

}
